<top-title title="供应商详情页" icon="am-icon-user" mh-click=""></top-title>
<!--添加材料-->
<div class="am-padding-horizontal-sm am-padding-top">
    <form class="am-form am-form-horizontal">
        <horizontal-item-static config-data="{name:'名称：',type:'text'}" ng-model="selected.name"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'单位：',type:'number'}" ng-model="selected.unit"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'品牌：',type:'number'}" ng-model="selected.brand"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'规格：',type:'text'}" ng-model="selected.spec"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'材质：',type:'text'}" ng-model="selected.quality"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'定位：',type:'text'}" ng-model="selected.local"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'零售价：',type:'number'}" ng-model="selected.relation.price"></horizontal-item-static>
        <!--<horizontal-item-static config-data="{name:'一级折扣价：',type:'text'}" ng-model="selected.relation.discount1"></horizontal-item-static>-->
        <!--<horizontal-item-static config-data="{name:'二级折扣价：',type:'text'}" ng-model="selected.relation.discount2"></horizontal-item-static>-->
        <!--<horizontal-item-static config-data="{name:'三级折扣价：',type:'text'}" ng-model="selected.relation.discount3"></horizontal-item-static>-->
        <!--<horizontal-item-static config-data="{name:'成本：',type:'number'}" ng-model="selected.relation.cost"></horizontal-item-static>-->
        <!--<horizontal-item-static config-data="{name:'供应商：',type:'text'}" ng-model="selected.relation.supplier.name"></horizontal-item-static>-->
        <!--<horizontal-item-static config-data="{name:'供货速度：',type:'text'}" ng-model="selected.relation.supplier.speed"></horizontal-item-static>-->
        <!--<horizontal-item-static config-data="{name:'联系电话：',type:'text'}" ng-model="selected.relation.supplier.tel"></horizontal-item-static>-->
        <!--<horizontal-item-static config-data="{name:'地址：',type:'text'}" ng-model="selected.relation.supplier.address"></horizontal-item-static>-->
        <!--<horizontal-item-static config-data="{name:'邮箱：',type:'text'}" ng-model="selected.relation.supplier.email"></horizontal-item-static>-->
        <horizontal-item-static config-data="{name:'一级折扣价：',type:'text'}" ng-model="selected.relation.discount1" ng-if="suppliers[0].checked"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'二级折扣价：',type:'text'}" ng-model="selected.relation.discount2" ng-if="suppliers[1].checked"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'三级折扣价：',type:'text'}" ng-model="selected.relation.discount3" ng-if="suppliers[2].checked"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'成本：',type:'number'}" ng-model="selected.relation.cost" ng-if="suppliers[3].checked"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'供应商：',type:'text'}" ng-model="selected.relation.supplier.name" ng-if="suppliers[4].checked"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'供货速度：',type:'text'}" ng-model="selected.relation.supplier.speed"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'联系电话：',type:'text'}" ng-model="selected.relation.supplier.tel" ng-if="suppliers[5].checked"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'地址：',type:'text'}" ng-model="selected.relation.supplier.address" ng-if="suppliers[6].checked"></horizontal-item-static>
        <horizontal-item-static config-data="{name:'邮箱：',type:'text'}" ng-model="selected.relation.supplier.email" ng-if="suppliers[7].checked"></horizontal-item-static>

        <div class="mh-padding-none am-g">
            <img class="am-u-sm-3" ng-repeat="img in images track by $index" ng-src="../../{{::img}}">
        </div>
        <button type="submit" class="am-btn am-form-field am-btn-default mh-lightgreen am-radius mh-text-white"
                 ng-click="back()">返回
        </button>
    </form>
</div>
